package java67_8;

import java.util.Scanner;

public class InvertedTriangle {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int h = 0;
		while (true) {
			System.out.print("输入高度:");
			h = in.nextInt();
			if (h > 1)
				break;
			System.out.println("输入错误,重来");
		}
		for (int i = 1; i <= h; i++) {
			for (int j = 1; j <= h - i + 1; j++) {
				System.out.print("*");
			}
			System.out.println();
		}

//		for (int i = h; i >= 1; i--) {
//			for (int j = 1; j <= i; j++) {
//				System.out.print("*");
//			}
//			System.out.println();
//		}

	}

}
